File Contents

src\pythontemplate\bad_example.py

Run
Missing
Excluded
1 import hashlib
2 import subprocess
3
4 from django.db.models import Model
5
6
7 def getHash(password: str):
8 """
9 This is an example function for encrypting passwords.
10
11 Args:
12 pw: The password to be encrypted.
13 """
14
15 return hashlib.md5(str(password).encode("utf-8"))
16
17
18 print(getHash(12345))